﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pgRegistrarse.aspx.cs" Inherits="EGuayas.Web.Licenciamiento.promotor.pgRegistrarse" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link  href="~/Resources/css/Style.css"  rel="stylesheet" />
    <!-- Load Ext JS --> 
    <script src="../Resources/js/Global.js"></script>
   
</head>
<body>  
    <form id="Form1" runat="server"> 
        <ext:ResourceManager ID="pgIdCategManager" runat="server" />
        <ext:Viewport ID="Viewport1" runat="server" 
               Layout="FitLayout">
            <Items>
              <%-- Hidden almacena IdPageSession  --%>
              <ext:Hidden Text="" ID="hddIdPageSession" runat="server"></ext:Hidden>
              <ext:Panel ID ="tab1FrmDetail" runat="server"  Title="" ButtonAlign="Center" AnchorVertical="100%">
                    <Loader ID="Loader2"  Url="tabs/pgUndefined.aspx"   Mode="Frame"  AutoLoad="false" Scripts="true" DisableCaching="true" runat="server" Flex="1"  >
                        <LoadMask ShowMask="true" />
                    </Loader>
                     
               </ext:Panel>              
           </Items>
            
       </ext:Viewport>
    </form>
    <ext:XScript ID="XScript1" runat="server">
        <script  type="text/javascript">
            var pgFn = new Object();
            pgFn._id = "pnlContentUrlDinamic";
            pgFn.myPanel = null;
           
            pgFn.getIdContentDinamic = function () {
                return (pgFn._id);
            };
            //Mostrar panel detalles
            pgFn.ShowViewDetailPanel = function () {
                var myUrl = "pgPromotor.aspx?idPage=" + App.hddIdPageSession.getValue() + "";
                var myPanelContent= App.tab1FrmDetail;
                pgFn.myPanel = myPanelContent.add(new Ext.Panel({
                   id: pgFn.getIdContentDinamic(),
                   border: false,
                   margins: '5 5 5 0',
                   layout: 'fit',
                   loader:
                    {
                        loadMask:
                            {
                                showMask: true
                            },
                        renderer: "frame",
                        url: myUrl
                    },
                    bodyPadding: 6,
                    closable: false,
                    tbar: [
                    '->',
                    {
                        text: 'Salir',
                        iconCls: '#LockOpen',
                        handler: function () {
                            App.direct.DeleteSession({
                                success: function (result) {
                                    document.location = '../pgLogin.aspx';
                                },
                                eventMask: {
                                    showMask: true,
                                    minDelay: 500
                                }
                             });
                          
                        }
                    }]
                }));
            };           
       </script>
    </ext:XScript>     
</body>


</html>
